package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryUserTrainingDTO;
import com.woniu.pojo.UserTraining;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-04-01
 */
public interface IUserTrainingService extends IService<UserTraining> {
    PageData select(Integer currentPage, Integer pageSize, QueryUserTrainingDTO userTrainingDTO);

    boolean add(UserTraining userTraining);

    boolean updateUserTraining(UserTraining userTraining);

    Boolean updateScore(Integer userId, Integer trainingId);

    Boolean updateFlag(String flag, Integer userId, Integer trainingId);

    Boolean createTrainingInfo(Integer userId, Integer trainingId);
}
